import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'


Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },{
    path: '/upload',
    name: 'upload',
    component: () =>
      import('@/views/upload.vue')
  },{
    path: '/chunk-upload',
    name: 'chunk-upload',
    component: () =>
      import('../views/chunk-upload.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
